/*
 * ConfirmHandOutCard.java
 *
 * Created on __DATE__, __TIME__
 */

package com.shangpintechnology.sci.machinegenerat;

/**
 *
 * @author  __USER__
 */
public class ConfirmHandOutCard extends javax.swing.JDialog {

	/** Creates new form ConfirmHandOutCard */
	public ConfirmHandOutCard(java.awt.Frame parent, boolean modal) {
		super(parent, modal);
		initComponents();
	}

	public javax.swing.JButton getCancel() {
		return cancel;
	}

	public void setCancel(javax.swing.JButton cancel) {
		this.cancel = cancel;
	}

	public javax.swing.JButton getConfirm() {
		return confirm;
	}

	public void setConfirm(javax.swing.JButton confirm) {
		this.confirm = confirm;
	}

	public javax.swing.JTextField getRfidCode() {
		return rfidCode;
	}

	public void setRfidCode(javax.swing.JTextField rfidCode) {
		this.rfidCode = rfidCode;
	}

	public javax.swing.JTextField getVipCode() {
		return vipCode;
	}

	public void setVipCode(javax.swing.JTextField vipCode) {
		this.vipCode = vipCode;
	}

	/** This method is called from within the constructor to
	 * initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is
	 * always regenerated by the Form Editor.
	 */
	//GEN-BEGIN:initComponents
	// <editor-fold defaultstate="collapsed" desc="Generated Code">
	private void initComponents() {

		confirm = new javax.swing.JButton();
		cancel = new javax.swing.JButton();
		sdfsdfs = new javax.swing.JLabel();
		ssdfsdfas = new javax.swing.JLabel();
		vipCode = new javax.swing.JTextField();
		rfidCode = new javax.swing.JTextField();

		setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
		setLocationByPlatform(true);

		confirm.setText("\u786e\u5b9a");
		confirm.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				confirmActionPerformed(evt);
			}
		});

		cancel.setText("\u53d6\u6d88");
		cancel.addActionListener(new java.awt.event.ActionListener() {
			public void actionPerformed(java.awt.event.ActionEvent evt) {
				cancelActionPerformed(evt);
			}
		});

		sdfsdfs.setText("VIP\u53f7\u7801");

		ssdfsdfas.setText("RFID\u53f7\u7801");

		vipCode.setText(" ");

		rfidCode.setText(" ");
		rfidCode.setEditable(false);

		org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(
				getContentPane());
		getContentPane().setLayout(layout);
		layout
				.setHorizontalGroup(layout
						.createParallelGroup(
								org.jdesktop.layout.GroupLayout.LEADING)
						.add(
								org.jdesktop.layout.GroupLayout.TRAILING,
								layout
										.createSequentialGroup()
										.add(71, 71, 71)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.TRAILING)
														.add(
																layout
																		.createSequentialGroup()
																		.add(
																				confirm)
																		.addPreferredGap(
																				org.jdesktop.layout.LayoutStyle.RELATED,
																				135,
																				Short.MAX_VALUE)
																		.add(
																				cancel))
														.add(
																org.jdesktop.layout.GroupLayout.LEADING,
																layout
																		.createSequentialGroup()
																		.add(
																				layout
																						.createParallelGroup(
																								org.jdesktop.layout.GroupLayout.TRAILING,
																								false)
																						.add(
																								org.jdesktop.layout.GroupLayout.LEADING,
																								ssdfsdfas,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.add(
																								org.jdesktop.layout.GroupLayout.LEADING,
																								sdfsdfs,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								54,
																								Short.MAX_VALUE))
																		.add(
																				18,
																				18,
																				18)
																		.add(
																				layout
																						.createParallelGroup(
																								org.jdesktop.layout.GroupLayout.LEADING)
																						.add(
																								rfidCode,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								177,
																								Short.MAX_VALUE)
																						.add(
																								vipCode,
																								org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																								177,
																								Short.MAX_VALUE))))
										.add(80, 80, 80)));
		layout
				.setVerticalGroup(layout
						.createParallelGroup(
								org.jdesktop.layout.GroupLayout.LEADING)
						.add(
								org.jdesktop.layout.GroupLayout.TRAILING,
								layout
										.createSequentialGroup()
										.add(81, 81, 81)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.BASELINE)
														.add(
																sdfsdfs,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																28,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
														.add(
																vipCode,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
										.add(18, 18, 18)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.BASELINE)
														.add(
																ssdfsdfas,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																28,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
														.add(
																rfidCode,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
																org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
																org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												org.jdesktop.layout.LayoutStyle.RELATED,
												50, Short.MAX_VALUE)
										.add(
												layout
														.createParallelGroup(
																org.jdesktop.layout.GroupLayout.BASELINE)
														.add(confirm).add(
																cancel)).add(
												72, 72, 72)));

		pack();
	}// </editor-fold>
	//GEN-END:initComponents

	private void cancelActionPerformed(java.awt.event.ActionEvent evt) {
		dispose();
	}

	private void confirmActionPerformed(java.awt.event.ActionEvent evt) {
		dispose();
	}

	/**
	 * @param args the command line arguments
	 */
	public static void main(String args[]) {
		java.awt.EventQueue.invokeLater(new Runnable() {
			public void run() {
				ConfirmHandOutCard dialog = new ConfirmHandOutCard(
						new javax.swing.JFrame(), true);
				dialog.addWindowListener(new java.awt.event.WindowAdapter() {
					public void windowClosing(java.awt.event.WindowEvent e) {
						System.exit(0);
					}
				});
				dialog.setVisible(true);
			}
		});
	}

	//GEN-BEGIN:variables
	// Variables declaration - do not modify
	private javax.swing.JButton cancel;
	private javax.swing.JButton confirm;
	private javax.swing.JTextField rfidCode;
	private javax.swing.JLabel sdfsdfs;
	private javax.swing.JLabel ssdfsdfas;
	private javax.swing.JTextField vipCode;
	// End of variables declaration//GEN-END:variables

}